import request from '@/utils/request'

// 查询CPU型号列表
export function listCpuinfo(query) {
  return request({
    url: '/system/cpuinfo/list',
    method: 'get',
    params: query
  })
}

// 查询CPU型号详细
export function getCpuinfo(cpuId) {
  return request({
    url: '/system/cpuinfo/' + cpuId,
    method: 'get'
  })
}

// 新增CPU型号
export function addCpuinfo(data) {
  return request({
    url: '/system/cpuinfo',
    method: 'post',
    data: data
  })
}

// 修改CPU型号
export function updateCpuinfo(data) {
  return request({
    url: '/system/cpuinfo',
    method: 'put',
    data: data
  })
}

// 删除CPU型号
export function delCpuinfo(cpuId) {
  return request({
    url: '/system/cpuinfo/' + cpuId,
    method: 'delete'
  })
}
